﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elements.Shapes
{
    /// <summary>
    /// 矩形定义
    /// </summary>
    public class RectShapeV4 : ShapeBaseV3
    {
        public override void Draw(Graphics g)
        {
            g.FillRectangle(new SolidBrush(BackgroundColor), Rect);
            g.DrawString(Text, TextFont, new SolidBrush(FontColor), Rect,
                new StringFormat() { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center });
        }

    }
}
